%!TEX program = xelatex
\documentclass[cn,pad,11pt,green,geye]{elegantnote}
\usepackage{minted}
\usepackage{xcolor}
\definecolor{codebg}{rgb}{0.95,0.95,0.95}
% Python代码段，单行代码，代码文件
\newminted{python}{autogobble,linenos,breaklines,breakanywhere,showspaces,python3,frame=topline,bgcolor=codebg}
\newmintedfile{python}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{python}{\VerbatimEnvironment\begin{pythoncode}}{\end{pythoncode}}
\newmintinline{python}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}

% bash
\newminted{bash}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintinline{bash}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{bash}{\VerbatimEnvironment\begin{bashcode}}{\end{bashcode}}
% HTML
\newminted{html}{autogobble,linenos,breaklines,breakanywhere,frame=topline,bgcolor=codebg}
% 无格式文本
\newminted{Text}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{textcode}{\VerbatimEnvironment\begin{Textcode}}{\end{Textcode}}

\newmintinline{Text}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
% C++
\newminted{cpp}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintedfile{cpp}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintinline{cpp}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{cpp}{\VerbatimEnvironment\begin{cppcode}}{\end{cppcode}}
% CUDA
\newminted{cuda}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintedfile{cuda}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintinline{cuda}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{cuda}{\VerbatimEnvironment\begin{cudacode}}{\end{cudacode}}

% CMake
\newminted{cmake}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintedfile{cmake}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newmintinline{cmake}{autogobble,linenos,breaklines,breakanywhere,bgcolor=codebg}
\newenvironment{cmake}{\VerbatimEnvironment\begin{cmakecode}}{\end{cmakecode}}


\graphicspath{{image/}}
\title{$\LaTeX$笔记模板}

\author{\href{https://bleedingfight.csdn.net/}{bleedingfight}}
\institute{\href{https://elegantlatex.org/}{Elegant\LaTeX{} Program}}
\version{2.20}
\date{\today}


\begin{document}
\maketitle
% logo
\centerline{\includegraphics[width=0.25\textwidth]{logo.pdf}}
\setlist[itemize]{label=$\circ$}
\input{monitor_desc.tex}
\input{style}
\end{document}
